<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%--
  ~ Copyright (c) 2017 22420103@QQ.COM 版权所有
  ~
  --%>

<div class="col-sm-3">
	<form id='roleQueryForm'>
	<div class="input-group">
		<input value="${parameterDto.name }" type="text" name="name" class="form-control search-query" placeholder="输入权限名称">

		<span class="input-group-btn">
			<button type="button" class="btn btn-purple btn-sm" onclick="refreshPage()">
				<span class="ace-icon fa fa-search icon-on-right bigger-110"></span>
				查询
			</button>
			<button style="margin-left:10px;" type="button" class="btn btn-primary btn-sm" onclick="addRole()">
				<span class="ace-icon fa fa-plus icon-on-right bigger-110"></span>
				新增
			</button>
		</span>
	</div>
	</form>
</div>
<div class="col-xs-12" style="margin-top:5px;">
	<table id="simple-table" class="table table-bordered table-hover">
		<thead>
			<tr>
				<th class="center">ID</th>
				<th class="center">权限名称</th>
				<th class="center">权限描述</th>
				<th class="center">操作</th>
			</tr>
		</thead>
		
		<tbody>
			<c:forEach items="${data}" var="item" varStatus="i">
		       <tr>
					<td class="center">${item.id}</td>
					<td class="center">${item.name }</td>
					<td class="center">${item.description }</td>
					<td class="center">
						<a class="btn btn-xs btn-danger" title="查看权限" onclick="seeDetail('${item.id}');">修改权限</a>
					</td>
				</tr>
		    </c:forEach>
				
			</tbody>
		</table>
		<%@include file="../paging.jsp" %>
</div>

